import Vue from 'vue'

import 'element-ui/packages/theme-chalk/src/base.scss'
import 'element-ui/packages/theme-chalk/src/alert.scss'
import 'element-ui/packages/theme-chalk/src/loading.scss'
import 'element-ui/packages/theme-chalk/src/message.scss'
import 'element-ui/packages/theme-chalk/src/notification.scss'
import 'element-ui/packages/theme-chalk/src/message-box.scss'

import { Loading, MessageBox, Notification, Message } from 'element-ui'

Vue.prototype.$loading = Loading.service
Vue.prototype.$msgbox = MessageBox
Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$prompt = MessageBox.prompt
Vue.prototype.$notify = Notification
Vue.prototype.$message = Message
